from selenium.webdriver.common.by import By
from utils.base import BaseObject


class SettingObject:
    def __init__(self):
        self.bo = BaseObject()
        self.search_btn = (By.ID, 'com.android.settings:id/search')

    def find_search_btn(self):
        return self.bo.search_ele(self.search_btn)


class SettinfHandle:
    def __init__(self):
        self.so = SettingObject()

    def click_settinf_btn(self):
        self.so.find_search_btn().click()


class SettingTask:
    sh = SettinfHandle()
    @classmethod
    def goto_search_page(cls):
        cls.sh.click_settinf_btn()
